home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0178-Re Linking C++-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-25  |  671 b   |  28 lines  |  [TEXT/GEOL]

  1. Item    3579795                         25-Oct-89        17:53
  2.  
  3. From:   SHEBANOW1                       Shebanow, Andrew
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Re- Linking C++
  8.  
  9. Attn: MacApp.Tech$
  10. SentBy: Andrew Shebanow
  11.          Reply to:   Re: Linking C++
  12. When you give your C function a prototype, you need to use the typesafe
  13. linkage syntax to tell C++ that the function doesn't have a C++ encoded name,
  14. like this:
  15.  
  16. extern "C" {
  17.     void get_Directory(short, unsigned char*,
  18.                                   unsigned char*, unsigned char***[256])
  19.     // I used the unmangle tool to get the params
  20. };
  21.  
  22. Have fun,
  23.  
  24. Andy Shebanow
  25. MacDTS
  26.  
  27.  
  28.